DX11 GET VERTEX LAYOUT ELEMENT OFFSET

Retrieves the byte offset to the element with the given semantic name and index.
It is more efficient to retrieve this value once and store it to a variable when setting data of
multiple vertices than to set each vertex' data by semantic name / index.

  Syntax
Return Dword = DX11 GET VERTEX LAYOUT ELEMENT OFFSET(vertLayout, semanticName, [semanticId])
  Parameters
vertLayout
Dword
The vertex layout to get the offset to a certain semantic of.
semanticName
String
The name of the semantic to get the offset of in the given vertex layout.
[Optional] semanticId
Dword
The id of the semantic name if there are several. Defaults to 0.

  Returns

The offset (in bytes) to the vertex element with the given semantic, or DX11_NO_SUCH_SEMANTIC (0xffffffff) if there is no such semantic data present in the given vertex layout.

  See also

VERTEXLAYOUT Functions Menu
DX11 Function Categories